import React from "react";
import { Route } from "react-router-dom";

const PrivateRoute = ({ component: Component, ...rest }) => (
        <Route {...rest} render={props => {
            return <Component {...props} />;
        }} />
    );
    export default PrivateRoute;
